package com.GroupSix.service;

import com.GroupSix.entity.TeacherEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface TeacherService extends IService<TeacherEntity> {

    //增
    Integer add(TeacherEntity tch);

    //删（根据账号）
    Integer delete(Integer id);

    //改
    Integer update(TeacherEntity tch);

    //查
    IPage<TeacherEntity> list(TeacherEntity teacherEntity, Integer pageNo, Integer pageSize);

    //教师用户登录
    String login(String name, Integer id, String pwd);

    //教师用户注册
    String signUp(String name, Integer id, String pwd, String course);
}
